package com.aspose.cells.b.a.b.a;

import com.aspose.cells.Color;
import com.aspose.cells.b.a.b.zo;
import com.aspose.cells.b.a.b.zq;
import java.awt.Paint;

public class zh extends com.aspose.cells.b.a.b.zc {
   zq a;
   zc b;
   zb c;
   Color d;
   Color e;
   boolean f;
   Paint g;
   Float h;
   Integer i;

   private zh() {
      this.f = false;
      this.g = null;
      this.h = null;
   }

   zh(float var1, float var2, Color var3, float var4, float var5, Color var6, boolean var7) {
      this.f = false;
      this.g = null;
      this.h = null;
      this.a = new zq(var1, var2, var4 - var1, var5 - var2);
      this.d = var3;
      this.e = var6;
      this.f = var7;
      this.i = null;
   }

   zh(float var1, float var2, Color var3, float var4, float var5, Color var6, int var7) {
      this(var1, var2, var3, var4, var5, var6, false);
      this.i = var7;
   }

   public zh(zo var1, zo var2, Color var3, Color var4) {
      this(var1.d(), var1.e(), var3, var2.d(), var2.e(), var4, false);
   }

   public zh(zq var1, Color var2, Color var3, int var4) {
      this(var1.f(), var1.g(), var2, var1.f() + var1.h(), var1.g() + var1.i(), var3, var4);
   }

   public zh(zq var1, Color var2, Color var3, float var4) {
      this(var1.f(), var1.g(), var2, var1.f() + var1.h(), var1.g() + var1.i(), var3, false);
      this.h = var4;
   }

   public zq a() {
      return this.a;
   }

   public Float b() {
      return this.h;
   }

   public Color c() {
      return this.d;
   }

   public Color d() {
      return this.e;
   }

   public boolean j() {
      return this.f;
   }

   public Integer k() {
      return this.i;
   }

   public Paint g() {
      if (this.g == null) {
         com.aspose.cells.b.a.b.e.zc var1 = com.aspose.cells.b.a.b.e.zb.a().b();
         this.g = var1.a(this);
      }

      return this.g;
   }

   public zh l() {
      zh var1 = new zh();
      if (this.a != null) {
         var1.a = this.a.a();
      }

      var1.d = this.d.a();
      var1.e = this.e.a();
      var1.h = this.h;
      var1.i = this.i;
      if (this.i() != null) {
         var1.a(this.i().b());
      }

      var1.g = null;
      if (this.b != null) {
         var1.b = new zc();
         if (this.b.b() != null) {
            var1.b.a(com.aspose.cells.b.a.za.a(this.b.b()));
         }

         if (this.b.a() != null) {
            var1.b.a(com.aspose.cells.b.a.za.a(this.b.a()));
         }
      }

      if (this.c != null) {
         var1.c = this.c.a();
      }

      return var1;
   }

   public void f() {
   }

   public void h() {
   }

   public zc m() {
      return this.b;
   }

   public void a(zc var1) {
      if (var1 == null) {
         throw new IllegalArgumentException("ColorBlend");
      } else if (var1.b() != null && var1.b().length != 0) {
         this.b = var1;
         this.g = null;
      } else {
         throw new IllegalArgumentException("ColorBlend");
      }
   }

   public zi n() {
      return this.i();
   }

   public zq o() {
      return this.a;
   }

   public Color[] p() {
      Color[] var1 = new Color[]{this.d, this.e};
      return var1;
   }

   // $FF: synthetic method
   public Object e() {
      return this.l();
   }
}
